﻿// by shimohana
using System;
using GeoAPI.Geometries;

namespace AzukiMap.Map
{
    public class MouseRangeBoxFixedArgs : EventArgs
    {
        //MouseRangeBoxStatus _status;

        //public MouseRangeBoxStatus Status
        //{
        //    get { return _status; }
        //    set { _status = value; }
        //}

        public IPoint Start { get; set; }

        public IPoint End { get; set; }

        public double MinLon
        {
            get { return Math.Min(Start.X, End.X); }
        }

        public double MinLat
        {
            get { return Math.Min(Start.Y, End.Y); }
        }

        public double MaxLon
        {
            get { return Math.Max(Start.X, End.X); }
        }

        public double MaxLat
        {
            get { return Math.Max(Start.Y, End.Y); }
        }

        //public MouseRangeBoxFixedArgs(MouseRangeBoxStatus status)
        //{
        //    _status = status;
        //}
    }
}